package com.example.rabbitmqretry.controller;

import com.example.rabbitmqretry.service.RabbitSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RabbitController {

    @Autowired
    RabbitSender rabbitSender;

    @GetMapping("/pay/sender")
    public String send(String msg) {
        rabbitSender.send(msg);
        return "success";
    }

}
